<?php
/**
 * Created by PhpStorm
 * User: whh
 * Date: 2022/7/27
 * Time: 9:42
 */

namespace app\http\middleware;

/**
 * 验证码前台有无登录
 * Class VerifyAuth
 * @package app\http\middleware
 */
class VerifyAuth
{
    public function handle($request, \Closure $next)
    {
        if (!$request->uid){
            return json(['code' => 2,'msg' => 'user is null']);
        }
        return $next($request);
    }
}